<style>
    .table th{
        text-align: center;
        vertical-align:middle;
    }
    .table td{
        text-align: center;
        vertical-align:middle;
    }
</style>
<div class="row-fluid listcontent">
    <div class="span12">
        <div class="portlet box grey">
            <div class="portlet-title">
                <div class="caption"><i class="icon-cogs"></i>反馈列表</div>
                <div class="actions" id="orderaline">
                    <div class="btn-group">
                        <a class="btn blue" href="#" data-toggle="dropdown">
                            <i class="icon-cogs"></i>&nbsp;&nbsp;操作
                            <i class="icon-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu pull-right">
                            <li><a id="info_delete"><i class="icon-trash"></i>删除</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="portlet-body">
                <div class="dataTables_wrapper form-inline">
                    <div class="row-fluid">
                        <div class="span12">
                            <form id="searchform" action="{$action}" method="post">
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left;">
                                    <label>
                                        <input type="button" class="btn blue searchsubmit" value="搜索:  "/>
                                        <input type="text" name="keywords" placeholder="ID/内容"
                                               aria-controls="sample_2" class="m-wrap"
                                               value="{$keywords?$keywords:''}" style="height:20px"/>
                                    </label>
                                </div>

                                <div class="dataTables_filter" id="sample_2_filter" style="float: left;margin-left:10px">
                                    <label>
                                        <input type="button" class="btn blue search" value="提交"/>
                                    </label>
                                </div>
                            </form>
                        </div>
                    </div>
                    <input type="hidden" name="page" value="{$page?$page:''}">
                    <table id="basicinfo" class="table table-hover table-bordered">
                        <thead>
                        <th style="width:8px;"><input type="checkbox"/></th>
                        <th>序号</th>
                        <th>ID</th>
                        <th>内容</th>
                        <th>图片</th>
                        <th>操作</th>
                        </thead>
                        <tbody>
                        {if(count($list)>0)}
                        {volist name='list' id='val' k='key'}
                        <tr class="odd gradeX ">
                            <td><input type="checkbox" class="checkboxes" name="id" value="{$val.feedback_id}"/></td>
                            <td>{:xuHao($key,$pages)}</td>
                            <td>{$val.feedback_id}</td>
                            <td width="50%">{$val.feedback_content}</td>
                            <td>
                                <?php if($val['feedback_image'] !=""){?>
                                <?php $image = trim($val['feedback_image'],',');?>
                                <?php $images = explode(',',$image);?>
                                <?php foreach($images as $key=>$vo){ ?>
                                    <img src="{$vo}" style="width:50px;height:50px">
                                <?php } ?>
                                <?php } ?>
                            </td>
                            <td>
                                <?php if($val['feedback_status'] == 1){ ?>
                                <a class="btn mini green reply" style="margin-top:5px" data-id='{$val.feedback_id}'><span>回复</span></a>
                                <?php } ?>
                                <a class="btn mini purple detail" style="margin-top:5px" data-id='{$val.feedback_id}'><span>查看</span></a>
                            </td>
                        </tr>
                        {/volist}
                        {else/}
                        <tr>
                            <td colspan="16"><span style="margin-left: 50px">暂无数据</span></td>
                        </tr>
                        {/if}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        {if(!empty($list))}
        {$list->render()}
        {/if}
    </div>
</div>
